package com.NewtifyMe;

import java.util.ArrayList;
import java.util.HashMap;




import android.app.ListActivity;
import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.ArrayAdapter;
import android.widget.ListView;
import android.widget.PopupWindow;
import android.widget.Spinner;
import android.widget.Toast;

public class MyListActivity extends ListActivity{
	   PopupWindow pw = null;
	/** Called when the activity is first created. */
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		//setContentView(R.layout.main);
		//setContentView(R.layout.main);
		// Create an array of Strings, that will be put to our ListActivity
		String[] names = new String[] {"Linux", "Windows7", "Eclipse", "Suse", "Ubuntu", "Solaris", "Android", "iPhone"};
		
		
		this.setListAdapter(new MyArrayAdapter(this, names));
	}

	@Override
	protected void onListItemClick(ListView l, View v, int position, long id) {
		super.onListItemClick(l, v, position, id);
		// Get the item that was clicked
//		Object o = this.getListAdapter().getItem(position);
//		String keyword = o.toString();
//		Toast.makeText(this, "You selected: " + keyword, Toast.LENGTH_LONG).show();
		
//	    String[] names = new String[] {"Linux","Linux","Linux", "Windows7", "Eclipse", "Suse", "Ubuntu", "Solaris", "Android", "iPhone"};
		
//	    this.setListAdapter(new MyArrayAdapter(this, names));
		
//		setContentView(R.layout.add_keyword);		
	

		startActivity(new Intent(this, AddKeyword.class));


	}
	
	
}